package com.study.mybatis.pojo;

import java.util.List;

public class TbGrade {

	private Integer id ;
	private String gradeName ;
	private List<TbStudent> students ;
	
	public TbGrade() {
		super();
	}
	public TbGrade(String gradeName) {
		super();
		this.gradeName = gradeName;
	}
	public TbGrade(Integer id, String gradeName) {
		super();
		this.id = id;
		this.gradeName = gradeName;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getGradeName() {
		return gradeName;
	}
	public void setGradeName(String gradeName) {
		this.gradeName = gradeName;
	}
	public List<TbStudent> getStudents() {
		return students;
	}
	public void setStudents(List<TbStudent> students) {
		this.students = students;
	}
	@Override
	public String toString() {
		return "TbGrade [id=" + id + ", gradeName=" + gradeName + ", students=" + students + "]";
	}
	
}
